import {ACTION_LOGIN} from "../actionType";

let defaultState = {};

// 定义reducer，第一个参数为state，赋予默认值// 第二个参数为action，
// reducer负责响应Action修改state值
export const getLogin = (state = defaultState, action) => {
    switch (action.type) {
        case ACTION_LOGIN:
            return {...state, ...action}
        default:
            return state
    }
};



